<?php

/**
 * 商城小程序
 */


//微信授权
$router->post('wx/info', 'WxAuthController@setWxInfo');
$router->get('wx/token', 'WxAuthController@wxtoken');
$router->get('wx/phone', 'WxAuthController@wxPhone');
$router->get('wx/fastPhone', 'WxAuthController@wxFastPhone');
//首页
$router->post('brand/index', 'IndexController@getBrandIndex'); //品牌列表
$router->post('brand/list', 'IndexController@getBrandList'); //品牌列表
$router->post('brand/one', 'IndexController@getBrandOne'); //品牌详情
//用户
$router->post('user/infobytoken', 'UserController@infoByToken');
$router->post('coupon/addbynew', 'UserController@addCouponByNew'); //新人领取优惠劵
$router->post('user/head/upload', 'UserController@headUpload'); //上传头像
$router->post('user/nick/modify', 'UserController@setNick'); //昵称修改
$router->post('user/phone/modify', 'UserController@setPhone'); //手机号修改
$router->post('user/level/list', 'UserController@getLevelList'); //等级列表
//$router->post('user/recharge', 'UserController@recharge'); //充值
$router->post('user/xieyi', 'UserController@xieyi'); //用户协议
$router->post('user/quanyi', 'UserController@quanyi'); //用户权益
$router->post('user/team', 'UserController@getTeamList'); //团队
$router->post('user/teamOrder', 'UserController@getTeamOrderList'); //团队订单
$router->post('user/sign', 'UserController@sign'); //签到
$router->post('user/pointsLog', 'UserController@getPointsLog'); //积分日志
$router->post('recharge/list', 'UserController@getRechargeList'); //充值记录
$router->post('user/qr/upload', 'UserController@uploadQR'); //上传二维码
$router->post('user/poster', 'UserController@conflatePoster'); //海报接口
//公共接口
$router->post('config/all', 'CommonController@getAllConfig'); //获取所有配置
$router->post('config/key', 'CommonController@getConfigByKey'); //获取单独配置
//商品
$router->post('goods/cate/list', 'GoodsController@getCateList'); //分类列表
$router->post('goods/list', 'GoodsController@getGoodsList'); //商品列表
$router->post('goods/one', 'GoodsController@getGoodsOne'); //商品详情
$router->post('goods/option', 'GoodsController@getOption'); //商品选项
$router->post('keyword/list', 'GoodsController@getKeywordList'); //关键词列表
$router->post('keyword/batch/del', 'GoodsController@keywordBatchDel'); //关键词清理
$router->post('goods/sku/list', 'GoodsController@getSkuList'); //SKU列表
//浏览历史
$router->post('read/add', 'GoodsController@readAdd'); //浏览记录
$router->post('read/list', 'GoodsController@getReadList'); //浏览历史
//购物车
$router->post('cart/list', 'CartController@getList');
$router->post('cart/add', 'CartController@add');
$router->post('cart/reduce', 'CartController@reduce'); //递减
$router->post('cart/batch/del', 'CartController@batchDel'); //批量删除
$router->post('cart/zhuanhuan', 'CartController@zhuanhuan'); //转换
//会员劵
$router->post('coupon/list', 'CouponController@getList');
$router->post('coupon/apply', 'CouponController@apply');
$router->post('coupon/one', 'CouponController@getOne');
$router->post('coupon/option', 'CouponController@getOption');
$router->post('coupon/new/list', 'CouponController@getNewUserList'); //新用户优惠劵列表
$router->post('coupon/new/add', 'CouponController@addNewUser'); //新用户优惠劵领取
$router->post('coupon/switch/one', 'CouponController@getSwitchOne');
//收货地址
$router->post('address/list', 'AddressController@getList');
$router->post('address/one', 'AddressController@getOne');
$router->post('address/option', 'AddressController@getOption');
$router->post('address/add', 'AddressController@add');
$router->post('address/modify', 'AddressController@modify');
$router->post('address/del', 'AddressController@setDel');
$router->post('address/default', 'AddressController@setDefault');
$router->post('address/default/one', 'AddressController@getDefaultOne');
$router->post('address/tocheck', 'AddressController@setChecked');

//订单
$router->post('order/list', 'OrderController@getList');
$router->post('order/one', 'OrderController@getOne'); //详情
$router->post('order/option', 'OrderController@getOption'); //下单前选项
$router->post('order/add', 'OrderController@add'); //购物车下单
$router->post('order/addbygid', 'OrderController@addByGid'); //直接下单
$router->post('order/cancel', 'OrderController@cancel'); //取消
$router->post('order/updateRemark', 'OrderController@updateRemark'); //修改备注
$router->post('order/revoke', 'OrderController@revoke'); //撤回
$router->post('order/again', 'OrderController@again'); //再来一单
$router->post('order/orderOption', 'OrderController@orderOption'); //直接下单选项
$router->post('order/receive', 'OrderController@receive'); //收货
$router->post('order/pickup', 'OrderController@pickup'); //自提
$router->post('order/batch', 'OrderController@pickup'); //自提
$router->post('order/tuihuo', 'OrderController@tuihuo'); //退货

//收益及提现
$router->post('income/list', 'IncomeController@getList'); //收益记录
$router->post('income/orderList', 'IncomeController@getOrderList'); //收益订单记录
$router->post('withdraw/list', 'WithdrawController@getList');//提现列表
$router->post('withdraw/addInfo', 'WithdrawController@addInfo'); //新增账户
$router->post('withdraw/add', 'WithdrawController@add'); //新增提现
$router->post('withdraw/modifyInfo', 'WithdrawController@modifyInfo'); //修改账户
$router->post('withdraw/getInfo', 'WithdrawController@getInfo'); //获取账户详情

//测试微信支付
$router->post('pay/wxorder', 'WxPayController@wxorder'); //统一订单
$router->post('pay/notice', 'WxPayController@notice'); //微信通知
$router->post('pay/balance', 'WxPayController@balance'); //余额支付
$router->post('pay/refund', 'WxPayController@refund'); //退款
$router->post('pay/notice2', 'WxPayController@refundNotice'); //微信通知
$router->post('caseout/wxout', 'WxCaseoutController@wxout'); //提现
$router->post('caseout/notice', 'WxCaseoutController@notice'); //提现通知
//图片上传
$router->post('image/Multiple', 'ImageController@uploadMultipleImages'); //多图上传

//帖子
$router->post('post/add', 'PostController@add'); //添加帖子
$router->post('post/list', 'PostController@getList'); //帖子列表
$router->post('post/cateList', 'PostController@getCateList'); //帖子分类列表
$router->post('post/one', 'PostController@getOne');
//礼品卡
$router->post('card/cateList', 'CardController@getCateList'); //卡片分类列表
$router->post('card/list', 'CardController@getCardList'); //卡片列表
$router->post('card/info', 'CardController@getCardOne'); //卡片详情
$router->post('card/my', 'CardController@myCardList'); //我的卡片
$router->post('card/use', 'CardController@useInfo'); //卡片使用
$router->post('card/exchange', 'CardController@exchange'); //卡片兑换
$router->post('card/receiveInfo', 'CardController@cardGoodsInfo'); //领取详情兑换
$router->post('card/receive', 'CardController@receive'); //领取详情兑换
$router->post('card/share', 'CardController@share'); //卡片发送
//积分产品
$router->post('pointsGoods/cate/list', 'PointsGoodsController@getCateList'); //分类列表
$router->post('pointsGoods/list', 'PointsGoodsController@getGoodsList'); //商品列表
$router->post('pointsGoods/one', 'PointsGoodsController@getGoodsOne'); //商品详情
$router->post('pointsGoods/option', 'PointsGoodsController@getOption'); //商品选项
$router->post('pointsGoods/sku/list', 'PointsGoodsController@getSkuList'); //SKU列表
//积分订单
$router->post('pointsOrder/list', 'PointsOrderController@getList');
$router->post('pointsOrder/option', 'PointsOrderController@getOption'); //下单前选项
$router->post('pointsOrder/addbygid', 'PointsOrderController@addByGid'); //直接下单
$router->post('pointsOrder/cancel', 'PointsOrderController@cancel'); //取消
$router->post('pointsOrder/revoke', 'PointsOrderController@revoke'); //撤回
$router->post('pointsOrder/again', 'PointsOrderController@again'); //再来一单
$router->post('pointsOrder/one', 'PointsOrderController@getOne'); //详情
$router->post('pointsOrder/orderOption', 'PointsOrderController@orderOption'); //直接下单选项
$router->post('pointsOrder/receive', 'PointsOrderController@receive'); //收货
$router->post('pointsOrder/pickup', 'PointsOrderController@pickup'); //自提
//发现页
$router->post('find/banner/list', 'IndexController@bannerList'); //轮播图
$router->post('find/cate/list', 'IndexController@findCateList'); //发现页分类
$router->post('find/switch', 'IndexController@findSwitch'); //发现页开关